{% if job_results and perms.extras.view_jobresult %}
    {% for result in job_results %}
        <div class="list-group-item">
            <a href="{% url 'extras:jobresult' pk=result.pk %}">
                {{ result.job_model.name }}
            </a>
            <span class="float-end" data-bs-toggle="tooltip" data-bs-title="{{ result.date_created }}" data-bs-fallback-placements="[&quot;top&quot;]">
                {% include 'extras/inc/job_label.html' %}
            </span>
            <br>
            <small>
                <span class="text-secondary">{{ result.user }} - {{ result.date_done|date:settings.SHORT_DATETIME_FORMAT }}</span>
            </small>
        </div>
        {% if forloop.last %}
            <div class="list-group-item text-end">
                <a href="{% url 'extras:jobresult_list' %}">View All History</a>
            </div>
        {% endif %}
    {% endfor %}
{% elif perms.extras.view_jobresult %}
    <div class="card-body text-secondary">
        None found
    </div>
{% else %}
    <div class="card-body text-secondary">
        <span class="mdi mdi-lock" aria-hidden="true"></span> No permission
    </div>
{% endif %}
